<?php
//设置编码为utf-8
header('Content-Type:text/html;charset=utf-8');
//网站根目录
define('ROOT_PATH', dirname(__FILE__));
//存放模版文件夹
define('TPL_DIR',ROOT_PATH.'/templates/');
//编译文件夹
define('TPL_C_DIR', ROOT_PATH.'/templates_c/');
//缓存文件夹
define('CACHE_DIR',  ROOT_PATH.'/cache/');
//引入模版类
require ROOT_PATH.'/includes/Templates.class.php';
//实例化模版类
$_tpl=new Templates();

//include TPL_DIR.'index.tpl';//这样没有任何意义

$_tpl->display('index.tpl');
?>